package com.asl.website.joinModule.service.impl;

import java.util.List;
import com.asl.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.asl.website.joinModule.mapper.AslJoinModuleMapper;
import com.asl.website.joinModule.domain.AslJoinModule;
import com.asl.website.joinModule.service.IAslJoinModuleService;

/**
 * 加入我们模块Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-05-22
 */
@Service
public class AslJoinModuleServiceImpl implements IAslJoinModuleService 
{
    @Autowired
    private AslJoinModuleMapper aslJoinModuleMapper;

    /**
     * 查询加入我们模块
     * 
     * @param id 加入我们模块主键
     * @return 加入我们模块
     */
    @Override
    public AslJoinModule selectAslJoinModuleById(Long id)
    {
        return aslJoinModuleMapper.selectAslJoinModuleById(id);
    }

    /**
     * 查询加入我们模块列表
     * 
     * @param aslJoinModule 加入我们模块
     * @return 加入我们模块
     */
    @Override
    public List<AslJoinModule> selectAslJoinModuleList(AslJoinModule aslJoinModule)
    {
        return aslJoinModuleMapper.selectAslJoinModuleList(aslJoinModule);
    }

    /**
     * 新增加入我们模块
     * 
     * @param aslJoinModule 加入我们模块
     * @return 结果
     */
    @Override
    public int insertAslJoinModule(AslJoinModule aslJoinModule)
    {
        aslJoinModule.setCreateTime(DateUtils.getNowDate());
        return aslJoinModuleMapper.insertAslJoinModule(aslJoinModule);
    }

    /**
     * 修改加入我们模块
     * 
     * @param aslJoinModule 加入我们模块
     * @return 结果
     */
    @Override
    public int updateAslJoinModule(AslJoinModule aslJoinModule)
    {
        aslJoinModule.setUpdateTime(DateUtils.getNowDate());
        return aslJoinModuleMapper.updateAslJoinModule(aslJoinModule);
    }

    /**
     * 批量删除加入我们模块
     * 
     * @param ids 需要删除的加入我们模块主键
     * @return 结果
     */
    @Override
    public int deleteAslJoinModuleByIds(Long[] ids)
    {
        return aslJoinModuleMapper.deleteAslJoinModuleByIds(ids);
    }

    /**
     * 删除加入我们模块信息
     * 
     * @param id 加入我们模块主键
     * @return 结果
     */
    @Override
    public int deleteAslJoinModuleById(Long id)
    {
        return aslJoinModuleMapper.deleteAslJoinModuleById(id);
    }
}
